﻿

using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class EnvironmentConfiguration : EntityConfiguration<Environment>
    {
        public EnvironmentConfiguration()
        {
            Property(e => e.EnvironmentID).IsIdentity();
            MapHierarchy(
           el => new
           {
               el.EnvironmentID,
               el.Description
           }
        ).ToTable("Environment");


        }
    }
}
